/**
 * Created with JetBrains PhpStorm.
 * User: jiangshuguang
 * Date: 14-10-29
 * Time: 下午1:07
 * To change this template use File | Settings | File Templates.
 */

(function(){
    var $page = $(".page-index"),
        Dialog = require("iphone:widget/ui/dialog/dialog.js").Dialog;

    dialog = new Dialog({
        title:'什么是土豪版果6宝',
        width:600
    });

    $page.find(".get-more").click(function(){
        dialog.show('' +
            '<div style="text-align: left">' +
            '<div class="dialog-content-line">一部无需等待立即享用的iPhone6（或iPhone6 Plus）</div>' +
            '<div class="dialog-content-line">连续12个月每月均可提取利息，可供您等额偿还招行12月分期还款</div>' +
            '<div class="dialog-content-line">一份与银行一年定期存款利率等额的收益</div>' +
            '<div class="dialog-content-line">本金返还</div>' +
            '<div style="font-weight:700;font-size:16px;line-height: 40px;color:#000;">同时拥有以上四大优势，这就是土豪版果6宝</div>' +
            '<div>因为我们强大而专业的投资理财能力，所以才能帮你比银行定期多一部iPhone6手机。</div>' +
            '</div>' +
            '');
    });

    var img = __uri("./image/wap.png");
    var share =  new Dialog({
        title:'微信扫描',
        width:400,
        content:'<img src="'+img+'" class="weixin-share">'
    });


    $(".part5 .share-weixin").click(function(){
        share.show();
    })
})();